<div class="post">
	<h2>
		<?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?>
	</h2>
	<h6>
		posted by <?php echo $data->author->username . ' on ' . $data->create_time; ?>
	</h6>
		
	<div id="pic">	
		<ul class="thumbnails">
	        <li class="span6">
	        	<?php     
	        	    if($data->photo != ""){ 
						$data->photo=Yii::app()->request->baseUrl.$data->photo;
				    	echo "<img style='height: 270px;' src='".$data->photo."'>";
				   }
				?>
		    </li>
	    </ul>
	</div>		
		
	<p>
		<?php
			$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
			echo $data->content;
			$this->endWidget();
		?>
	</p>
	<div class="nav">
		<b>Tags:</b>
		<?php echo implode(', ', $data->tagLinks); ?>
		<br/>
		<?php //echo CHtml::link('Permalink', $data->url); ?> 
		<?php echo CHtml::link("Comments ({$data->commentCount})",$data->url.'#comments'); ?> |
		Last updated on <?php echo $data->update_time; ?>
	</div>
</div>
